<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>添加二级菜单</title>
		<import type='css' file="admin.pintuer4.css.pintuer" />
		<import type='css' file="admin.pintuer4.css.admin" />
		<link type="image/x-icon" href="http://www.pintuer.com/favicon.ico" rel="shortcut icon" />
		<link href="http://www.pintuer.com/favicon.ico" rel="bookmark icon" />
	</head>

	<body>
		<include file="Public:header" />
	<!--内容-->
		<div class="admin" style="width:80%;margin:0 auto;">
			<form method="post" action="{:U('Menu/sub_menu_add')}">
			
				
				<div class="form-group">
				<div class="label"><label for="parent_id">上级菜单</label></div>
				<div class="field">
				<select class="input" id="parent_id" name="p_id">
					<volist name="menu_arr" id="m">
					<option value="{$m.id}">{$m.name}</option>
					</volist>
				</select></div>
				</div>
				
				
				<div class="form-group">
				<div class="label"><label for="subject">菜单名称</label></div>
				<div class="field"><input type="text" class="input input-small"
					id="subject" name="name" size="30" data-validate="required:请填写菜单名" />
				</div>
				</div>
				<div class="form-group">
				<div class="label"><label for="action">动作</label></div>
				<div class="field"><input type="text" class="input input-small"
					id="action" name="action" size="30"   data-validate="required:必填"/>
				</div>
				
				</div>
				
				
				<div class="form-group">
				<div class="label"><label for="function">方法</label></div>
				<div class="field"><input type="text" class="input input-small"
					id="function" name="function" size="30" data-validate="required:必填" />
				</div>
				</div>
				
				
				<div class="form-group">
				<div class="label"><label for="sort">排序</label></div>
				<div class="field"><input type="text" class="input input-small"
					id="sort" name="sort" size="30" /></div>
				</div>
				
				
				<div class="form-button">
				<button class="button border-green" type="submit">添加</button>
				</div>
			</form>
		</div>
	</div>
<import type='js' file="admin.pintuer4.js.jquery" />
		<import type='js' file="admin.pintuer4.js.pintuer" />
		<import type='js' file="admin.pintuer4.js.respond" />
		<import type='js' file="admin.pintuer4.js.layer" />
		<import type='js' file="admin.pintuer4.js.admin" />
		<script>
			$(function() {
				
				//大于移动端800宽度才弹出提示
				if ($(window).width() >= 800) {
					layer.open({
						type: 1,
						shade: false,
						title: false, //不显示标题
						area: ['420px', '640px'],
						content: $('#alert-talk'), //捕获的元素
						cancel: function(index) {
							layer.close(index);
						}
					});
				}
			});
		</script>
	</body>

</html>